const domain = "http://soolife.com.cn:9090/";
const CONFIG_MANAGER =
{
    RequstUrl: domain
    , imgeUrl: "http://img.soolife.cn/"
    , imageServer: ["http://soolife.com.cn:9091"]
    //, imageServer: ["http://d1.soolife.net", "http://d2.soolife.net", "http://d3.soolife.net"]
    , orgId: 6010
    , imagezoom: 0.8
    , validateaddress: "http://api.map.baidu.com/geocoder/v2/?ak=YRy3onEQ3n0Wmdb20jLEHTaY&output=json&address={0}"
    , storeImgurl: domain + "img/store-{0}/{1}"
    , authImgurl: domain + "img/auth-{0}/{1}"
    , webSiteUrl: "http://wap.soolife.cn"
    , shareUrl: "http://wap.soolife.cn/view/"
    , senddelay: 60	//false/发送短信的延迟时间 单位：秒
    , headerHight: 44
    , pageSize: 10 //分页中每页显示个数jiagekongge
    
    , aliPayServer: "http://testpay.soolife.cn/v1/pay/alipay/app"  		//阿里app支付
    
    , weixinPayServer: "http://testpay.soolife.cn/v1/pay/weixin/app"	//微信app支付
    
	, aliPayWebServer: "http://testpay.soolife.cn/v1/pay/alipay/wap"	//阿里wap支付
	
	, weixinPayWebServer: "http://testpay.soolife.cn/v1/pay/weixin/wap"	//微信wap支付
	
	,walletPayServer: "http://testpay.soolife.cn/v1/pay/wallet/app"		//余额支付
	
    , serverUrl: "http://wap.soolife.cn/server/"
}

const ISDEBUG = true;
//const ISDEBUG = true;

// 互斥
const AGENT_CLIENT =
{
    APP: !ISDEBUG,
    WEB: ISDEBUG
}
const STORAGE_MANAGER =
{
    searchword: "sessionstoragekey_searchword"                       // 查询关键字
    , searchhistory: "localstoragekey_searchhistory"                // 搜索历史纪录
    , ordersearchhistory: "localstoragekey_ordersearchhistory"        //  订单搜索历史
    , searchtag: "localstoragekey_searchtag"                         // 搜索框中随机显示二级分类名称
    , user: "user"
    , currentmember: "localstoragekey_currentmember"               // 当前会员信息
    , customerInfo: "customerInfo"
    , storeageTime: "localstoragekey_storeageTime"                  // 缓存时间
    , category: "localstoragekey_category"                           // 分类缓存数据（1天有效）
    , parentcategory: "localstoragekey_parentcategory"             // 父类缓存数据（1天有效）
    , cacheproductcount: "cacheProductCount"                        // 购物车中商品的个数
    , lastCheckTime: "localstoragekey_lastCheckTime"              // 最后查看时间
    , showwelcome: "localstoragekey_showwelcome"                  // 是否已经显示了欢迎页
    , barcodehistory: "localstoragekey_barcodehistory"            // 二维码扫描历史
    , ip: "localstoragekey_ip"                                        // IP地址
    , reciveMessageSetting: "recive_message_setting"             //是否接收推送消息
    , bellsSetting: "bell_setting"                                  //以铃声提示
    , shakeSetting: "shake_setting"                                 //以震动提示
    , is_show_download_div: "sessionstoragekey_is_show_download_div"      // 是否关闭下载浮层
    , username: "login_user_name" //登陆用户名
    , confirmOrderData: "confirm_order_data" //确认订单数据
    , activeTab: "localstoragekey_activeTab" // 当前Tab
    , latestversion: "localstoragekey_latestversion"
    , issetpaypasswd: "is_set_paypasswd" 							//是否设置支付密码
}

const PAGE_NAME =
{
    home_index: "home_index"
    , goods_goodslist: "goods_goodslist"
    , goods_goodsdetail: "goods_goodsdetail"
    , shop_shop: "shop_shop"
    , barcode_scanresult: "barcode_scanresult"
    , account_bindaccount: "account_bindaccount"
}

const ERROR_MESSAGE =
{
    system: '系统错误' // 当前城市
    , network: "网络请求失败，请检查一下您的网络"
    , interface: "您的网络太不给力了！"
}

const SMS_TYPE = {
    register: "register", 	//星粉注册成功短信通知
    forget: "forget",		//忘记密码
    verify: "verify",		//发送验证码短信
    order: "order",		//发送订单生成短信
    pay_success: "pay_success", //发送订单支付成功短信
    refund: "refund",		//退款通知短信
    activity: "activity",	//参加活动短信通知
    safety: "safety",  //根据会员编号，发送认证的手机短信
};

//活动类型
const PROMOTION_TYPE = {
	coupons:{ type:"coupons", name:"优惠券" },
	full_gift:{ type:"full_gift",  name:"满赠"},
	full_subtract:{ type:"full_subtract",name:"满减"},
	over_bought:{type:"over_bought", name:"多促" },
	suite:{type:"suite", name:"套件" },
	promos:{type:"promos", name:"优惠" },
}
